Is there a way to use something like RewriteRule ... [PT] for an external URL?

Posted by nbolton on Server Fault See other posts from Server Fault or by nbolton
Published on 2010-09-06T09:23:35Z Indexed on 2012/06/07 10:42 UTC
Read the original article Hit count: 174

Filed under:

I have a non-apache web server running on port 8000, but this cannot be accessed from behind corporate firewalls. So, I would like to use my apache 2 server as a proxy to this other web server. I've tried using:

RewriteEngine On
RewriteRule /.* http://buildbot.synergy-foss.org:8000/builders/ [PT]

... but this does not work; I get:

Bad Request

Your browser sent a request that this server could not understand.

However, it worked fine with [R].

Update:

Also, when using ProxyPass, I get this error:

Forbidden

You don't have permission to access / on this server.

© Server Fault or respective owner

Related posts about apache2